<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Confirmation user Info</title>
</head>
<body>
<%@page import="java.util.*;"%>
<jsp:useBean id="userInfo" type="csc.nndp.dao.User" scope="session"></jsp:useBean>



<form action="add-user?action=add" method="post">
	<fieldset style="width:300px;">
		<legend><b>Confirm User Information</b></legend>
		<table>
			<tr>
				<td>User Id:</td>
				<td><c:out value="${userInfo.userId}" /></td>
			</tr>
			<tr>
				<td>User Name:</td>
				<td><c:out value="${userInfo.userName}" /></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><c:out value="${userInfo.password}" /></td>
			</tr>
			<tr>
				<td>First Name:</td>
				<td><c:out value="${userInfo.firstName}" /></td>
			</tr>
			<tr>
				<td>Last Name:</td>
				<td><c:out value="${userInfo.lastName}" /></td>
			</tr>
			<tr>
				<td>phone:</td>
				<td>
					<c:out value="${userInfo.phone}" />				
				</td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><c:out value="${userInfo.email}" /></td>
			</tr>
			<tr>
				<td>Role:</td>
				<td><c:out value="${userInfo.role}" /></td>
			</tr>
			
		</table>
		<br />
		<input type="submit" value="Accept" /><input type="reset" value="Cancel" onclick="window.location.href ='view-user'"/>
	</fieldset>
</form>
</body>
</html>